﻿@{
    ViewBag.Title = "Ajax测试";
}

<h2>Ajax测试</h2>


<div id="dailydeal">
    @Ajax.ActionLink("Click here to see today's special",
                    "DailyDeal",
                    null,
                    new AjaxOptions{
                    UpdateTargetId ="dailydeal",
                    InsertionMode = InsertionMode.Replace,
                    HttpMethod = "Get"
                    },
                    new { @class  =  "btn btn-primary"})
</div>

@section InitScripts{
        <script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
}

